<?php
class Somi_Form_Bewertung extends Zend_Dojo_Form
{
	public function init()
	{
		
		$this->setName('Inventar');
		$this->setAction($this->getView()->url())->setMethod('post');
		#$this->addAttribs(array('onSubmit'=>'return validate(this)'));
		
    	   	
		$formDecorators=array(
            'FormElements',
        array('HtmlTag',array('tag'=>'dl','class'=>'zend_form')),
            'DijitForm', // hier stand bei dir vorher: 'Form',
        );
                
        
        $elementDecorators=array(
        'DijitElement', // vorher: 'ViewHelper',
        'Errors',
        array(array('data'=>'HtmlTag'),array('tag'=>'div','class'=>'element')),
        array('Label',array('class'=>'left','requiredSuffix' => '*')),
        array(array('row'=>'HtmlTag'),array('tag'=>'div','class'=>'row')),
        );
        
        $buttonDecorators=array(
        'DijitElement', // vorher: 'ViewHelper',
        array(array('data'=>'HtmlTag'),array('tag'=>'div','class'=>'button')),
        array(array('row'=>'HtmlTag'),array('tag'=>'div'))
        );  
		
	
		$filterToLower = new Zend_Filter_StringToLower();
        $filterToLower->setEncoding('UTF-8');
        
		$felder=array(
			'1' => '',
            '2' => '',
            '3' => '',
        	'4' => '',
            '5' => '',
            '6' => '',
        	'7' => '',
            '8' => '',
            '9' => '',
        	'10' => '',
		);
        
        $bearbeitungszeit=$this->createElement('RadioButton','bearbeitungszeit', array(
        'label' => '',
        'multiOptions'  => $felder,
    	));
    	
    	$prasenz=$this->createElement('RadioButton','prasenz', array(
        'label' => '',
        'multiOptions'  => $felder,
    	));
    	
    	$qualitat=$this->createElement('RadioButton','qualitat', array(
        'label' => '',
        'multiOptions'  => $felder,
    	));
    	
    	$punktlichkeit=$this->createElement('RadioButton','punktlichkeit', array(
        'label' => '',
        'multiOptions'  => $felder,
    	));
    	
    	$leistungsverhaltnis=$this->createElement('RadioButton','leistungsverhaltnis', array(
        'label' => '',
        'multiOptions'  => $felder,
    	));
    	
    	
    	$bearbeitungszeit->setOptions(array('separator' =>''));
    	$qualitat->setOptions(array('separator' =>''));
    	$prasenz->setOptions(array('separator' =>''));
    	$punktlichkeit->setOptions(array('separator' =>''));
    	$leistungsverhaltnis->setOptions(array('separator' =>''));
    	
    	#Anmerkung
		$anmerkung=$this->createElement('Textarea','anmerkung',array(
		'label'		=> '',
		#'style'		=>'height:100px;width:300px;',
		#'height'		=>'100px',
		#'PromptMessage'		=> '<div style="width:200px">Noch mher Input</div>',
		'style'    => 'width: 240px; height: 100px;',
		'required'	=> false,
		));
    	
    	
  
    	$submit=$this->createElement('SubmitButton','submit',array(
        'label'			=> 'Bewerten',
        #'style'			=> 'width:200px;height:25px;',
        ));
        
        
        $this->addElements(array($bearbeitungszeit,$prasenz,$qualitat,$punktlichkeit,$leistungsverhaltnis,$anmerkung,$submit));
        
	}
}